﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace ZR.Model.mes.pro
{
    /// <summary>
    /// 生产任务
    ///</summary>
    [SugarTable("pro_worktask")]
    public class ProWorktask
    {
        /// <summary>
        /// 生产任务id 
        ///</summary>
         [SugarColumn(ColumnName="task_id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int TaskId { get; set; }
        /// <summary>
        /// 生产任务code 
        ///</summary>
         [SugarColumn(ColumnName="task_code"    )]
         public string TaskCode { get; set; }
        /// <summary>
        /// 生产计划ID 
        ///</summary>
         [SugarColumn(ColumnName="workorder_id"    )]
         public string WorkorderId { get; set; }
        /// <summary>
        /// 生产计划编号 
        ///</summary>
         [SugarColumn(ColumnName="workorder_code"    )]
         public string WorkorderCode { get; set; }
        /// <summary>
        /// 计划名称 
        ///</summary>
         [SugarColumn(ColumnName="workorder_name"    )]
         public string WorkorderName { get; set; }
        /// <summary>
        /// 工序id 
        ///</summary>
         [SugarColumn(ColumnName="process_id"    )]
         public int? ProcessId { get; set; }
        /// <summary>
        /// 工序编码 
        ///</summary>
         [SugarColumn(ColumnName="process_code"    )]
         public string ProcessCode { get; set; }
        /// <summary>
        /// 工序名称 
        ///</summary>
         [SugarColumn(ColumnName="process_name"    )]
         public string ProcessName { get; set; }
        /// <summary>
        /// 物料id 
        ///</summary>
         [SugarColumn(ColumnName="material_id"    )]
         public int? MaterialId { get; set; }
        /// <summary>
        /// 物料编码 
        ///</summary>
         [SugarColumn(ColumnName="material_code"    )]
         public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称 
        ///</summary>
         [SugarColumn(ColumnName="material_name"    )]
         public string MaterialName { get; set; }
        /// <summary>
        /// 单位 
        ///</summary>
         [SugarColumn(ColumnName="unit"    )]
         public string Unit { get; set; }
        /// <summary>
        /// 排产数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity"    )]
         public decimal? Quantity { get; set; }
        /// <summary>
        /// 已经生产数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity_produced"    )]
         public decimal? QuantityProduced { get; set; }
        /// <summary>
        /// 合格品数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity_quanlify"    )]
         public decimal? QuantityQuanlify { get; set; }
        /// <summary>
        /// 不良品数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity_unquanlify"    )]
         public decimal? QuantityUnquanlify { get; set; }
        /// <summary>
        /// 开始生产时间 
        ///</summary>
         [SugarColumn(ColumnName="start_time"    )]
         public DateTime? StartTime { get; set; }
        /// <summary>
        /// 生产时长 
        ///</summary>
         [SugarColumn(ColumnName="duration"    )]
         public decimal? Duration { get; set; }
        /// <summary>
        /// 完成生产时间 
        ///</summary>
         [SugarColumn(ColumnName="end_time"    )]
         public DateTime? EndTime { get; set; }
        /// <summary>
        /// 甘特图显示颜色 
        ///</summary>
         [SugarColumn(ColumnName="color_code"    )]
         public string ColorCode { get; set; }
        /// <summary>
        /// 需求日期 
        ///</summary>
         [SugarColumn(ColumnName="request_date"    )]
         public string RequestDate { get; set; }
        /// <summary>
        /// 生产状态 
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 备注 
        ///</summary>
         [SugarColumn(ColumnName="remark"    )]
         public string Remark { get; set; }
        /// <summary>
        /// 预留字段1 
        ///</summary>
         [SugarColumn(ColumnName="attr1"    )]
         public string Attr1 { get; set; }
        /// <summary>
        /// 预留字段2 
        ///</summary>
         [SugarColumn(ColumnName="attr2"    )]
         public string Attr2 { get; set; }
        /// <summary>
        /// 预留字段3 
        ///</summary>
         [SugarColumn(ColumnName="attr3"    )]
         public string Attr3 { get; set; }
        /// <summary>
        /// 预留字段4 
        ///</summary>
         [SugarColumn(ColumnName="attr4"    )]
         public string Attr4 { get; set; }
        /// <summary>
        /// 租户号 
        ///</summary>
         [SugarColumn(ColumnName="TENANT_ID"    )]
         public string TenantId { get; set; }
        /// <summary>
        /// 乐观锁 
        ///</summary>
         [SugarColumn(ColumnName="REVISION"    )]
         public int? Revision { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_BY"    )]
         public string CreatedBy { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_TIME"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 更新人 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_BY"    )]
         public string UpdatedBy { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_TIME"    )]
         public DateTime? UpdatedTime { get; set; }
    }
}
